package com.boarsoft.boar.sequence.entity;

import java.io.Serializable;

public class SequenceSegment implements Serializable {
	private static final long serialVersionUID = 4869571487334199517L;

	/** */
	protected String id;
	/** */
	protected String sequenceId;
	/** */
	protected long beginNo;
	/** */
	protected long endNo;
	/** */
	protected String node;
	/** */
	protected long lastNo;

	public String toString() {
		return String.format("%s/%d~%d/%s", //
				sequenceId, beginNo, endNo, node);
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getSequenceId() {
		return sequenceId;
	}

	public void setSequenceId(String sequenceId) {
		this.sequenceId = sequenceId;
	}

	public long getBeginNo() {
		return beginNo;
	}

	public void setBeginNo(long beginNo) {
		this.beginNo = beginNo;
	}

	public long getEndNo() {
		return endNo;
	}

	public void setEndNo(long endNo) {
		this.endNo = endNo;
	}

	public String getNode() {
		return node;
	}

	public void setNode(String node) {
		this.node = node;
	}

	public long getLastNo() {
		return lastNo;
	}

	public void setLastNo(long lastNo) {
		this.lastNo = lastNo;
	}
}
